// query: &proxy=http://121.196.226.246:84  在 query 参数中加上 proxy=your-proxy 即可让这一次的请求使用 proxy
import request from './request'
export const reqLogin = (phone) => request({url:`/captcha/sent?phone=${phone}`,method:'get'})
export const reqCaptcha = (phone, password) => request({url: `/captcha/verify?phone=${phone}&captcha=${password}`})
export const reqPerson =(params)=>request({url:'/personalized',params,method:'get'})
export const reqHotSearch = () => request({
    url: '/search/hot',
    method:'get',
})
export const reqSearchResult = params => request({
    url: '/cloudsearch',
    params
})
export const reqNewMusic = params => request({
    url: "/personalized/newsong",
    params
})
export const reqGetList = (keyword)=>request({url:`/search?keywords= ${keyword}`})
export const reqSong  =(keyword)=>request({url:`/song/url?id=${keyword}`})
export const reqTopList =()=>request({url:`/top/list?idx=28`})
export const reqTopList2 =()=>request({url:`/top/list?idx=22`})
